<?
if($edit_mode=="edit"){
?>
<td><input type="text" id="value" name="value" value="<?= $info->value ?>"></td>
<td><input type="text" id="explanation" name="explanation" value="<?= $info->explanation ?>"></td>
<td><input type="text" id="sequence" name="sequence" value="<?= $info->sequence ?>"></td>
<td>
    <a onclick="edit_contact_usual_holiday_submit(<?= $info->contact_usual_holiday_id ?>);" href="#"><i class="icon-edit"></i>確認修改</a> &nbsp;&nbsp;<a onclick="cancel_edit_contact_usual_holiday(<?= $info->contact_usual_holiday_id ?>);" href="#"><i class="icon-edit"></i>取消</a>
</td>
<?
}else if($edit_mode=="edit_return"){
?>
<td><?= $info->value ?></td>
<td><?= $info->explanation ?></td>
<td><?= $info->sequence ?></td>
<td>
    <a onclick="edit_contact_usual_holiday(<?= $info->contact_usual_holiday_id ?>);" href="#"><i class="icon-edit"></i>修改</a>&nbsp;&nbsp;
    <a href="<?= site_url('/contact_usual_holiday/data_delete/' . $info->contact_usual_holiday_id) ?>" href="#"><i class="icon-trash"></i>刪除</a>
</td>
<?
}else{
foreach($result as $key=>$val){
?>
<tr id="t_<?= $val->contact_usual_holiday_id ?>">
    <td><?= $val->value ?></td>
    <td><?= $val->explanation ?></td>
    <td><?= $val->sequence ?></td>
    <td>
        <a onclick="edit_contact_usual_holiday(<?= $val->contact_usual_holiday_id ?>);" href="#"><i class="icon-edit"></i>修改</a>&nbsp;&nbsp;
        <a href="<?= site_url('/contact_usual_holiday/data_delete/' . $val->contact_usual_holiday_id) ?>" href="#"><i class="icon-trash"></i>刪除</a>
    </td>
</tr>
<?
}	
}
?>